Optimal. Leaf size=53 \[ -\frac {x^2 (a B-A b x)}{3 a b \left (a+b x^2\right )^{3/2}}-\frac {2 B}{3 b^2 \sqrt {a+b x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {819, 267}
\begin {gather*} -\frac {x^2 (a B-A b x)}{3 a b \left (a+b x^2\right )^{3/2}}-\frac {2 B}{3 b^2 \sqrt {a+b x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 267
Rule 819
Rubi steps
\begin {align*} \int \frac {x^2 (A+B x)}{\left (a+b x^2\right )^{5/2}} \, dx &=-\frac {x^2 (a B-A b x)}{3 a b \left (a+b x^2\right )^{3/2}}+\frac {(2 B) \int \frac {x}{\left (a+b x^2\right )^{3/2}} \, dx}{3 b}\\ &=-\frac {x^2 (a B-A b x)}{3 a b \left (a+b x^2\right )^{3/2}}-\frac {2 B}{3 b^2 \sqrt {a+b x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.39, size = 44, normalized size = 0.83 \begin {gather*} \frac {-2 a^2 B-3 a b B x^2+A b^2 x^3}{3 a b^2 \left (a+b x^2\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(91\) vs.
\(2(45)=90\).
time = 0.12, size = 92, normalized size = 1.74
method | result | size |
gosper | \(\frac {A \,b^{2} x^{3}-3 B a b \,x^{2}-2 a^{2} B}{3 \left (b \,x^{2}+a \right )^{\frac {3}{2}} a \,b^{2}}\) | \(41\) |
trager | \(\frac {A \,b^{2} x^{3}-3 B a b \,x^{2}-2 a^{2} B}{3 \left (b \,x^{2}+a \right )^{\frac {3}{2}} a \,b^{2}}\) | \(41\) |
default | \(B \left (-\frac {x^{2}}{b \left (b \,x^{2}+a \right )^{\frac {3}{2}}}-\frac {2 a}{3 b^{2} \left (b \,x^{2}+a \right )^{\frac {3}{2}}}\right )+A \left (-\frac {x}{2 b \left (b \,x^{2}+a \right )^{\frac {3}{2}}}+\frac {a \left (\frac {x}{3 a \left (b \,x^{2}+a \right )^{\frac {3}{2}}}+\frac {2 x}{3 a^{2} \sqrt {b \,x^{2}+a}}\right )}{2 b}\right )\) | \(92\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 70, normalized size = 1.32 \begin {gather*} -\frac {B x^{2}}{{\left (b x^{2} + a\right )}^{\frac {3}{2}} b} - \frac {A x}{3 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} b} + \frac {A x}{3 \, \sqrt {b x^{2} + a} a b} - \frac {2 \, B a}{3 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.13, size = 63, normalized size = 1.19 \begin {gather*} \frac {{\left (A b^{2} x^{3} - 3 \, B a b x^{2} - 2 \, B a^{2}\right )} \sqrt {b x^{2} + a}}{3 \, {\left (a b^{4} x^{4} + 2 \, a^{2} b^{3} x^{2} + a^{3} b^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 94 vs.
\(2 (46) = 92\).
time = 5.19, size = 141, normalized size = 2.66 \begin {gather*} \frac {A x^{3}}{3 a^{\frac {5}{2}} \sqrt {1 + \frac {b x^{2}}{a}} + 3 a^{\frac {3}{2}} b x^{2} \sqrt {1 + \frac {b x^{2}}{a}}} + B \left (\begin {cases} - \frac {2 a}{3 a b^{2} \sqrt {a + b x^{2}} + 3 b^{3} x^{2} \sqrt {a + b x^{2}}} - \frac {3 b x^{2}}{3 a b^{2} \sqrt {a + b x^{2}} + 3 b^{3} x^{2} \sqrt {a + b x^{2}}} & \text {for}\: b \neq 0 \\\frac {x^{4}}{4 a^{\frac {5}{2}}} & \text {otherwise} \end {cases}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.03, size = 36, normalized size = 0.68 \begin {gather*} \frac {{\left (\frac {A x}{a} - \frac {3 \, B}{b}\right )} x^{2} - \frac {2 \, B a}{b^{2}}}{3 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.97, size = 51, normalized size = 0.96 \begin {gather*} \frac {B\,a^2-3\,B\,a\,\left (b\,x^2+a\right )+A\,b\,x\,\left (b\,x^2+a\right )-A\,a\,b\,x}{3\,a\,b^2\,{\left (b\,x^2+a\right )}^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________